package com.qqls.youxiangousys.pj.sys.dao;

import com.qqls.youxiangousys.pj.sys.entity.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SysNoticeDao {

    Integer getCount(String noticeContent);

    List<SysNotice> findNotice(String noticeContent, Integer start, Integer pageSize);

    //查找内容是否存在
    SysNotice findNoticeByName(String noticeContent);

    //添加
    Integer addNotice(SysNotice notice);

    //修改
    Integer updateNotice(SysNotice notice);

    //状态
    Integer updateValId(@Param("id")Integer id, @Param("noticeState") Integer noticeState);

    //删除
    Integer deleteNotice(Integer[] ids);
}
